package com.moyun.finance.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.List;

/**
 * 所有子类别菜单实体类
 */
@Entity
@Data
public class AllType {
    @Id
    private String id;

    private String companyId;//所属公司id

    private String name;//类别名称

    private String parentId;//父类id

    private String url;//菜单url

    private int type;//菜单类型 0:项目菜单 1:产品菜单 2:客户菜单 3：合同

    @Transient
    private List<AllType> children;//子菜单
}